#!/bin/bash

curl -X POST -H 'Content-Type:  application/json' -d '{"username":"lajug", "message":"Hello PJUG"}' "http://localhost:8080/presentation/tweets/binding"
curl -X POST -H 'Content-Type:  application/json' -d '{"username":"pjug", "message":"Hello LAJUG"}' "http://localhost:8080/presentation/tweets/binding"
curl -X POST -H 'Content-Type:  application/json' -d '["pjug"]' "http://localhost:8080/presentation/tweets/binding/lajug/follow"
curl -X PUT -H 'Content-Type:  application/json' -d '{"username":"sbjug", "comment":"Please do not forget us,"}' "http://localhost:8080/presentation/tweets/binding/1"
echo
curl http://localhost:8080/presentation/tweets/binding/lajug
echo
curl http://localhost:8080/presentation/tweets/binding/pjug
echo
curl http://localhost:8080/presentation/tweets/binding/lajug/stream
echo
curl -H "Accept:  application/x-javascript" "http://localhost:8080/presentation/tweets/streaming/lajug/stream?callback=c"
echo
curl -H "Accept:  application/x-javascript" "http://localhost:8080/presentation/tweets/binding/lajug/stream"
echo
